package array;

public class King
{
	private String name;
	private boolean sex;
	private short age;
	private int woman;
	private double height;
	public King() 
	{
		/**
		 * 无参构造方法
		 */
	}
	public King(String name, boolean sex, short age)
	{
		this.name = name;
		this.sex = sex;
		this.age = age;
	}
	public King(String name, boolean sex, short age,int woman ,double height)
	{
		this(name,sex,age);
		this.woman = woman;
		this.height = height;
	}
	public String toString()
	{
		String result="名字："+name+";性别："+sex+";年龄："+age+";身高："+height+";妃子数："+woman+";";
		return result;
	}
	public String getName()
	{
		return name;
	}
	public void setName(String name)
	{
		this.name = name;
	}
	public boolean isSex()
	{
		return sex;
	}
	public void setSex(boolean sex)
	{
		this.sex = sex;
	}
	public short getAge()
	{
		return age;
	}
	public void setAge(short age)
	{
		this.age = age;
	}
	public int getWoman()
	{
		return woman;
	}
	public void setWoman(int woman)
	{
		this.woman = woman;
	}
	public double getHeight()
	{
		return height;
	}
	public void setHeight(double height)
	{
		this.height = height;
	}
}
